import {request} from '@/util/request.js'

//jxy的我的上报案件
export function getMyReportTaskList(data) {
	return request({
		url: '/business/app/event/selectReportEventByRole',
		method: 'POST',
		data
	})

};
//确认提交接口
export function getBigOption(data) {
	return request({
		url: '/business/app/event/add',
		method: 'POST',
		data
	})
};

//二维码获取接口信息
export function getqrCode(data) {
	return request({
		url: 'app/getQrcodeInfo/' + data,
		method: 'GET',
		is_qrcode: '2'
	})
};

//二维码查询已绑定二维码
export function getqrcodeisbind(data) {
	return request({
		url: 'qrCode/bind/isBind?type=' + data,
		method: 'GET',
		is_qrcode: '2'
	})
};
//二维码查询未绑定二维码
export function getqrcodeunbind(data) {
	return request({
		url: 'qrCode/bind/unBind?type=' + data,
		method: 'GET',
		is_qrcode: '2'
	})
};

//激活二维码接口
export function submitQRcode(data) {
	return request({
		url: 'app/activation',
		method: 'POST',
		data,
		is_qrcode: '2'
	})
};

//绑定提交接口
export function submitappcode(data) {
	return request({
		url: 'app/submit',
		method: 'POST',
		data,
		is_qrcode: '2'
	})
};

//挂起接口
export function submitqrcodeHang(data) {
	return request({
		url: 'app/qrcodeHang',
		method: 'POST',
		data,
		is_qrcode: '2'
	})
};


//我的负责案件
export function getMyTaskList(data) {
	return request({
		url: '/business/app/event/selectMyEventsOfRole',
		method: 'POST',
		data
	})
}



//案件详情的处理日志
export function getEventLogList(data) {
	return request({
		url: '/business/event/eventLog/getEventLogList/'+data.eventId,
		method: 'GET'
	})
}

//案件详情
export function getEventInfoByEventId(data) {
	return request({
		url: '/business/event/event/getEventInfoByEventId/'+data.eventId,
		method: 'GET'
	})
}


//案件会话列表----查找处置人员的特殊事件列表
export function getCzryAllEventsOfTS(data) {
	return request({
		url: '/business/app/event/getCzryAllEventsOfTS',
		method: 'POST',
		data
	})
}

//案件处理 接口列表
export function getcaseHandingList(data) {
	return request({
		url: '/szcg/business/eventThree/list',
		method: 'POST',
		data
	})
};

//案件处理 确定受理接口
export function getcaseHandingaccept(data) {
	return request({
		url: '/szcg/business/eventThree/accept',
		method: 'POST',
		data,
	})
};

//案件处理 案件回退
export function getcaseHandingupdateDel(data) {
	return request({
		url: '/szcg/business/eventThree/updateDelFlagById',
		method: 'POST',
		data,
	})
};

//案件处理 案件派遣
export function getcaseHandingsend(data) {
	return request({
		url: '/szcg/business/eventThree/send',
		method: 'POST',
		data,
	})
};

//案件处理 获取派遣人员列表
export function getcaseHandingsendperson(data) {
	return request({
		url: '/szcg/business/eventThree/czry',
		method: 'GET',
		data,
	})
};

//案件处理  确认督办
export function getcaseHandingsupervise(data) {
	return request({
		url: '/business/event/eventOversee/eventOversee',
		method: 'POST',
		data,
	})
};

//案件处理  确认延期
export function getcaseHandingdeferment(data) {
	return request({
		url: '/business/event/eventApproval/insertEventDelay',
		method: 'POST',
		data,
	})
};

//案件处理   该案件是否可以延期
export function getcasecheckDelay(data) {
	return request({
		url: '/business/event/eventApproval/checkDelay',
		method: 'GET',
		data,
	})
};

//查询附近点位案件
export const queryNearbyEvents = (data) => {
	return request({
		url: '/business/app/event/nearbyEvent',
		method: 'post',
		data,
	})
}

//判断该案件是否可以 缓办
export function getisCheckHb(data) {
	return request({
		url: '/business/event/eventApproval/checkHb',
		method: 'GET',
		data,
	})
};

//缓办 接口
export function getisCheckHbCase(data) {
	return request({
		url: '/business/event/eventApproval/appSaveEventSlow',
		method: 'POST',
		data,
	})
};
// jxy 案件审核接口
export function getisCheckSHcase(data) {
	return request({
		url: '/szcg/business/eventThree/examine',
		method: 'POST',
		data,
	})
};
// jxy 案件审核驳回
export function getisCheckBack(data) {
	return request({
		url: '/business/event/supervise/reject',
		method: 'POST',
		data,
	})
};

//全部案件列表
export function getallCase(data) {
	return request({
		url: '/business/event/event/getAllEvents',
		method: 'POST',
		data,
	})
};


